replication-logs.tsx 773 B

12345678910111213141516171819202122232425262728
  1. import { useParams } from 'common'
  2. import { LogsTableName } from '@/components/interfaces/Settings/Logs/Logs.constants'
  3. import { LogsPreviewer } from '@/components/interfaces/Settings/Logs/LogsPreviewer'
  4. import DefaultLayout from '@/components/layouts/DefaultLayout'
  5. import LogsLayout from '@/components/layouts/LogsLayout/LogsLayout'
  6. import type { NextPageWithLayout } from '@/types'
  7. export const LogPage: NextPageWithLayout = () => {
  8. const { ref } = useParams()
  9. return (
  10. <LogsPreviewer
  11. condensedLayout
  12. queryType="etl"
  13. projectRef={ref!}
  14. tableName={LogsTableName.ETL}
  15. />
  16. )
  17. }
  18. LogPage.getLayout = (page) => (
  19. <DefaultLayout>
  20. <LogsLayout title="Replication Logs">{page}</LogsLayout>
  21. </DefaultLayout>
  22. )
  23. export default LogPage